package A_c3p0;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import java.sql.Connection;
import java.sql.SQLException;

public class Demo2 {
    public static void main(String[] args) throws SQLException {
        //1.获取连接池对象 - 空参构造法
        ComboPooledDataSource ds = new ComboPooledDataSource("otherc3p0");
        Connection conn = ds.getConnection();
        System.out.println(conn);
    }
}

